package com.llp.javaweb.mapper;

import com.llp.javaweb.pojo.User;
import org.apache.ibatis.annotations.Select;

public interface RegisterMapper {

    /**
     * 用户注册
     * @param user
     */
    void add(User user);

    /**
     * 根据用户名查询
     */
    @Select("select * from usr where username = #{name}")
    User selectByName(String name);

}